package com.travel.qywx.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 描述
 *
 * @author ddshuai
 * @date 2019-04-08 17:02
 **/
public enum  MsgType {
    /**
     * 消息类型
     */
    TEXT("text","文本消息"),
    IMAGE("image","图片消息"),
    VOICE("voice","语音消息"),
    VIDEO("video","视频消息"),
    FILE("file","文件消息"),
    TEXTCARD("textcard","文本卡片消息"),
    NEWS("news","图文消息"),
    MPNEWS("mpnews","图文消息"),
    MARKDOWN("markdown","markdown消息"),
    MINIPROGRAM_NOTICE("miniprogram_notice","小程序通知消息"),
    ;
    @JsonValue
    private String type;
    private String description;

    MsgType(String type, String description) {
        this.type = type;
        this.description = description;
    }

    public String getType() {
        return type;
    }
}
